
public class IF_ID {
	int instruction;
	int keep;
	private int PC;
	
	void init(){
		keep=0;
		instruction=0;
		PC=-4;
	}
	
	void set_instruction(int instr){
		if(this.keep==0){
			instruction=instr;
		}
	}
	int get_instruction(){
		return instruction;
	}
	void set_keep(int Keep){
		this.keep=Keep;
	}
	
	void setPC(int pc){
		if(pc==-1)
			this.clear();
		this.PC=pc;
	}
	int getPC(){
		return this.PC;
	}
	
	void clear(){
		instruction=0;
		keep=0;
	}
}
